package com.lxmes.business.service;

import java.util.List;
import com.lxmes.business.domain.CcPurchaseInfoSp;

/**
 * 采购审批单Service接口
 * 
 * @author zhangzhiyu
 * @date 2023-06-28
 */
public interface ICcPurchaseInfoSpService 
{
    /**
     * 查询采购审批单
     * 
     * @param id 采购审批单主键
     * @return 采购审批单
     */
    public CcPurchaseInfoSp selectCcPurchaseInfoSpById(Long id);

    /**
     * 查询采购审批单列表
     * 
     * @param ccPurchaseInfoSp 采购审批单
     * @return 采购审批单集合
     */
    public List<CcPurchaseInfoSp> selectCcPurchaseInfoSpList(CcPurchaseInfoSp ccPurchaseInfoSp);
    public List<CcPurchaseInfoSp> selectCcPurchaseInfoSpSelectList(CcPurchaseInfoSp ccPurchaseInfoSp);
    //采购订单入库
    public List<CcPurchaseInfoSp> selectCcPurchaseInfoSpRk(CcPurchaseInfoSp ccPurchaseInfoSp);
    /**
     * 新增采购审批单
     * 
     * @param ccPurchaseInfoSp 采购审批单
     * @return 结果
     */
    public int insertCcPurchaseInfoSp(CcPurchaseInfoSp ccPurchaseInfoSp);

    /**
     * 修改采购审批单
     * 
     * @param ccPurchaseInfoSp 采购审批单
     * @return 结果
     */
    public int updateCcPurchaseInfoSp(CcPurchaseInfoSp ccPurchaseInfoSp);
    //生成合同
    public int htsc(Long[] ids);

    /**
     * 批量删除采购审批单
     * 
     * @param ids 需要删除的采购审批单主键集合
     * @return 结果
     */
    public int deleteCcPurchaseInfoSpByIds(Long[] ids);

    /**
     * 删除采购审批单信息
     * 
     * @param id 采购审批单主键
     * @return 结果
     */
    public int deleteCcPurchaseInfoSpById(Long id);
    /**
     * 导入采购审批单信息
     *
     * @return 结果
     */
    String imporIteminfo(List<CcPurchaseInfoSp> ccPurchaseInfoSpList, boolean updateSupport, String operName);
}
